import Login from '../pages/users/login.js';
import Reg from '../pages/users/reg.js';
import Info from './info.js'
var routes = {
    '/login': () => new Login(),//登录
    '/reg': {//注册
        on() {
            new Reg()
        }
    },
    ...Info
};
var router = Router(routes).configure({ recurse: 'forward' });//开通嵌套路由
export default {
    init() {
        router.init();
        location.hash = location.hash || '/login'
    }
}
